package cn.kgc.ssm.service;

import cn.kgc.ssm.dto.UserPageDTO;
import cn.kgc.ssm.entity.User;
import cn.kgc.ssm.response.ResponseResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author 课工场
 * @date 2024/11/14
 * @description
 */
public interface UserService {

    ResponseResult login(String username, String password, String code, HttpServletRequest request);

    ResponseResult personalInfo(HttpSession session);

    ResponseResult editPersonalInfo(User user);

    ResponseResult editPersonalPwd(String oldPassword, String newPassword, HttpSession session);

    ResponseResult userPage(UserPageDTO userPageDTO);

    ResponseResult addUser(User user);

    ResponseResult editUser(User user);

    ResponseResult deleteUser(List<Integer> ids);

    ResponseResult resetPassword(Integer id);
}
